package com.hxc.common;

import cn.hutool.core.date.DateTime;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
//@EnableScheduling
@EnableTransactionManagement
public class CommonApplication {
    private static final Marker MARKER = MarkerFactory.getMarker(log.getName());

    public static void main(String[] args) {
        SpringApplication.run(CommonApplication.class, args);
        final String now = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
        log.info(MARKER, "(xxx 程序)于{}启动成功...............", now);
    }

}
